package com.idak.jaxb.library;

import java.util.List;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;

public class Book {
	private String isbn;
	private String name;
	private String subject;
	private List<Author> authors;
	
	@XmlAttribute(name="isbn")
	public String getIsbn() {return isbn;}
	
	@XmlElement(name="NAME")
	public String getName() {return name;}
	
	@XmlElement(name="SUBJECT")
	public String getSubject() {return subject;}
	
	@XmlElementWrapper(name="AUTHORS")
	@XmlElement(name="AUTHOR")
	public List<Author> getAuthors() {return authors;}

	public void setIsbn(String isbn) {this.isbn = isbn;}
	public void setName(String name) {this.name = name;}
	public void setSubject(String subject) {this.subject = subject;}
	public void setAuthors(List<Author> authors) {this.authors = authors;}
	
	
}
